<?php 
$jobseeker_info = $_['jobseekerinfo'];
$type=$_['type'];
$jobseek_id = JRequest::getInt('jobseeker_id',0)
?>

<form action="<?php echo OC_Helper::linkToRoute('resume_saveaddresume'); ?>" id="resume_handle_form" name="resume_handle_form" method="POST">
<div class="hr_setresumewrap">
         <div class="setresumebox" style="margin-top:15px;">
            <div class="setresumesimple">
               <div class="form-horizontal setresumeform medium clearfix">     
                  <div class="control-group group-left">
                     <label class="control-label"><i class="red songti">*</i><span>姓<i class="ispace2"></i>名：</span></label>
                     <div class="controls">
                        <input type="text" class="input-large required" name="name" id="name" value="<?php echo $type=='edit'&& !empty($jobseeker_info->name)?$jobseeker_info->name:"";?>"/>
                     </div>
                  </div>
                  <div class="control-group group-right">
                     <label class="control-label"><i class="red songti">*</i><span>手<i class="ispace2"></i>机：</span></label>
                     <div class="controls">
                        <input type="text" class="input-large required" name="phone" id="phone" value="<?php echo $type=='edit' && !empty($jobseeker_info->phone)?$jobseeker_info->phone:"";?>"/>
                     </div>
                  </div>
                  <div class="control-group group-left">
                     <label class="control-label"><span>E-mail：</span></label>
                     <div class="controls">
                        <input type="text" class="input-large" name="email" id="email" value="<?php echo $type=='edit' && !isFakeEmail($jobseeker_info->email)?$jobseeker_info->email:"";?>"/>
                     </div>
                  </div>
                  <div class="control-group group-right" style="margin-left:0px;">
                     <label class="control-label"><i class="red songti">*</i><span>性<i class="ispace2"></i>别：</span></label>
                      <div class="controls">
                         <label class="radio inline"><input type="radio" name="sex" id="male" value="M" <?php echo ($type=='edit'&& !empty($jobseeker_info->sex) && $jobseeker_info->sex == 'M')? 'checked' : ''?> />男</label>
                         <label class="radio inline"><input type="radio" name="sex" id="female" value="F" <?php echo ($type=='edit'&& !empty($jobseeker_info->sex) && $jobseeker_info->sex == 'F')? 'checked' : ''?> />女</label>
                         <label for="sex" class="radio inline error" style="display: none;">该项必填</label>
                      </div>
                  </div>
                  <div class="control-group group-left">
                     <label class="control-label" id="upresume_position"><span>简历原件：</span></label>
                     <div class="controls">
                        <input type="text" id="filerealname" name="filerealname" class="input-large" readonly style="cursor:pointer" value="<?php echo ($type=='edit' && !empty($jobseeker_info->attachment))?$jobseeker_info->attachment:"";?>"/>                     
                        <a href="#" class="ppp_whitebtn whitebtn" id="fileuploadaction">选择文件</a>
                        <?php if(0):?>
                        <span id="invitejobseeker"
                        <?php if($type="add" || ($type=="edit" && !empty($jobseeker_info->job_id) && !empty($jobseeker_info->system))):?> 
                        style="display:none;"
                        <?php endif;?>
                        >
                        <span style="margin-left:15px;">邀请笔试评测：</span>
                        <label class="radio inline" style="padding-top:0px;">
                           <input type="radio"  name="autoinvite" value="1"> 是
                        </label>
                        <label class="radio inline" style="padding-top:0px;">
                           <input type="radio"  name="autoinvite" checked value="0"> 否
                        </label>
                        <span style="color:red;margin-left:5px;" class="uninvite"></span>
                        </span>
                        <?php endif;?>
                        <br/>
                     </div>
                  </div> 
                  <div class="control-group group-right">
                     <label class="control-label"><span>职<i class="ispace2"></i>位：</span></label>
                     <div class="controls">
                        <input type="text" class="input-large" name="job_name" id="job_name" readonly style="cursor:pointer;" value="<?php echo ($type=="edit" && !empty($jobseeker_info->job_title) && empty($jobseeker_info->system))?$jobseeker_info->job_title:''; ?>" />                        
                        <a href="javascript:;" class="ppp_whitebtn whitebtn" id="selectjobposition">选择职位</a> 
                     </div>
                  </div>
                  <div class="control-group group-all" style=" margin-top:-10px;">
                     <label class="control-label"></label>
                     <div class="controls">
                        <span class="greysp" style="padding-top:0px;">支持最大2Ｍ的Doc、Docx、PDF、HTML、HTM、MHT、TXT文件</span>
                         <div class="uploadresumerror" style="color:red;margin-top:8px;"></div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="setresumesubmit" id="setresumesubmit">
            <a href="javascript:;" id="posthandleresume"  class="ppp_bluebtn handlesume_confirm">提交</a><a href="javascript:;" id="postresumeback" style="width:33px;color: #666666;margin-left:10px;">取消</a>
            <span style="color:red;" class="systeminfo"></span>
            <input type="hidden" name="jobseekerid" id="jobseekerid" value="<?php echo $jobseek_id;?>" />
            <input type="hidden" name="fileuploadname" id="fileuploadname" value=""/>
            <input type="hidden" name="oldjobid" id="oldjobid" value="<?php echo ($type=="edit" && !empty($jobseeker_info->job_id) && empty($jobseeker_info->system)) ? $jobseeker_info->job_id:0; ?>"/>
            <input type="hidden" name="requesttoken" value="<?php echo PSession::getFormToken();?>" id="requesttoken">  
            <input type="hidden"  name="job_id" id="job_id" value="<?php echo ($type=="edit" && !empty($jobseeker_info->job_id) && empty($jobseeker_info->system)) ? $jobseeker_info->job_id:0; ?>"/>
            <?php if(0):?><a href="javascript:;" class="showmore">展开添加更多信息</a><?php endif;?>
            </div>
         </div> 
      </div>
  </form> 
   <div id="uploadresumeform" name="uploadresumeform" class="uploadform">
      <form id="uploadform" class="file_upload" action="<?php echo OC_Helper::linkToRoute('resume_uploadresumeattchment');?>" method="POST" enctype="multipart/form-data">
         <div class="uploadbtn">
            <input class="inputfile" type="file" name="Filedata" id="Fieldata" data-url=""/>
            <input type="hidden" name="requesttoken" value="<?php echo PSession::getFormToken();?>" id="requesttoken">
            <input type="hidden" name="filename" id="filename" value="" />
            <div class="btn-upload large" data-nodragtext="上传"></div>
         </div>
       </form>
       <div id="uploadresumetable"  style="margin-top:28px;">
          <table class="files">
             <tr class="file_upload_template" style="display:none;">
                <td class="file_upload_progress"><div></div></td>
             </tr>
          </table>
       </div> 
   </div>
  
